package com.oa.ylms.apps.dao.news;

import java.util.List;

import com.oa.ylms.apps.entity.archives.ArchiveInfoValue;
import com.oa.ylms.apps.entity.news.NewsInfoValue;

public interface INewsInfoDao {
    
	
    public int addNewsInfo(NewsInfoValue newsInfo) throws Exception;
    	
	public NewsInfoValue qureyNewsById(NewsInfoValue newsInfo) throws Exception;

	public List<NewsInfoValue> qureyTopNews(int topNum) throws Exception;

	public List<NewsInfoValue> qureyNewsWithPage(NewsInfoValue newsInfo, ArchiveInfoValue archiveInfo, int rows, int pageNo) throws Exception;
	
	public boolean modifyNewsInfo(NewsInfoValue newsInfo)throws Exception;
	
	public boolean deleteNewsInfo(NewsInfoValue newsInfo)throws Exception;

	public int countTPages(NewsInfoValue newsInfo, ArchiveInfoValue archiveInfo, int rows) throws Exception;
	
	public int getTotalNumbers() throws Exception;
}
